package com.zhang.webadmin.vo;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

@Data
public class EditUserRoleVo {

    @NotNull(message = "userId不能为空")
    private Long userId;

    @NotNull(message = "角色id不能为空")
    @Size(min = 1, message = "至少分配一个角色")
    private List<Long> roleIdList;
}
